package cn.wolfcode.crm.util;

import lombok.Getter;
import lombok.Setter;

import java.util.Collections;
import java.util.List;

@Getter
@Setter
public class PageResult {
    public static final PageResult PAGERESULT_EMPTY = new PageResult(0, Collections.EMPTY_LIST);
    private Integer total;
    private List<?> rows;

    public PageResult(Integer total, List<?> rows) {
        this.total = total;
        this.rows = rows;
    }
}
